package com.itheima.dao;

import com.itheima.pojo.Comment;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @ClassName CommentMapper
 * @Description 评论表 mapper接口
 * @Author pengkaka
 * @Date 2020/8/4 18:44
 * @Version 1.0
 **/
public interface CommentMapper extends Mapper<Comment> {
    //// 手动进行评论分页的方法
    //@Select("select * from t_comment where keyword like ("%"+#{keyword}+"%") and userName = #{uerName"})
    //List<Comment> selectByAllConditions(@Param("keyword")String keyword, @Param("userName")String userName);
}
